package com.yc.study.config.minio;

import io.minio.MinioClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author liupeng
 */
@Configuration
public class MinioConfig {
  @Bean
  public MinioClient minioClient() {

    return MinioClient.builder()
        .endpoint("http://dev:9000")
        .credentials("admin", "admin123")
        .build();
  }
}
